{extend name="base" /}
{block name="body"}
<div class="layui-body">
    <!--tab标签-->
    <div class="layui-tab layui-tab-brief">
        <ul class="layui-tab-title">
            <li class="layui-this">投票记录列表</li>
            <li class=""><a href="{:url('admin/votingRecord/votingStatistics')}">投票统计</a></li>
        </ul>
        <div class="layui-tab-content">
            <div class="layui-tab-item layui-show">

                <form class="layui-form layui-form-pane" action="{:url('admin/VotingRecord/votingRecord')}" method="get">
                    <div class="layui-inline">
                        <label class="layui-form-label">选手搜索</label>
                        <div class="layui-input-inline">
                            <input type="text" name="keyword" value="{$keyword}" placeholder="微信昵称/openid" class="layui-input">
                        </div>
                    </div>
                    <div class="layui-inline">
                        <button class="layui-btn">搜索</button>
                    </div>
                </form>
                <hr>

                <table class="layui-table">
                    <thead>
                    <tr>
                        <th style="width: 30px;">ID</th>
                        <th>投票人</th>
                        <th>openid</th>
                        <th>设备信息</th>
                        <th>参加时间</th>
                        <th>IP信息</th>
                        <th>被投票人</th>
                    </tr>
                    </thead>
                    <tbody>
                    {foreach name="vote_record" item="vo"}
                    <tr>
                        <td>{$vo.id}</td>
                        <td>{$vo.voteNickName}</td>
                        <td>{$vo.voteOpenId}</td>
                        <td>{$vo.voteEquipInfo}</td>
                        <td>{$vo.voteTime}</td>
                        <td>{$vo.voteIp}</td>
                        <td>{$vo.playerName}</td>
                    </tr>
                    {/foreach}
                    </tbody>
                </table>
                <!--分页-->
                {$vote_record->render()}
            </div>
        </div>
    </div>
    <div id="imgManager" style="margin: auto;width: 200px;height: 200px;display: none;position:fixed;top:25%;left:50%;">
        <img  id="ims" style="width: 200px;height: 200px;" src="xxx" onclick="goCancel(this)"/>
    </div>
</div>
<script type="text/javascript">
    function doCancel(obj){
        $("#imgManager").css("display","block");
        $("#ims").attr({
            "src": obj.src
        })
    }
    function goCancel(){
        $("#imgManager").css("display","none");
    }
</script>
{/block}